<?php
class Test extends CI_Controller {
	
	function __construct(){
		parent::__construct();
		
		$this->load->library('unit_test');
	}
	
	public function index(){
		$test = 1 + 1;
		$expected_result = 2;
		$test_name = 'Add one plus one';
		
		//echo $this->unit->run('Foo', 'is_string');
		echo $this->unit->run($test, $expected_result, $test_name);
		echo $this->unit->report();
		echo $this->unit->result();
		
		$this->output->enable_profiler(TRUE);
	}
}